// pages/resume/resume.js
Page({
  data: {},

  // 检查密码并跳转到日记页面
  checkPassword: function () {
    wx.showModal({
      title: '请输入密码',
      content: '',
      editable: true,
      success: function (res) {
        if (res.confirm && res.content === '3818') {
          wx.navigateTo({
            url: 'pages/baike/baike'
          });
        } else if (res.cancel) {
          wx.showToast({
            title: '密码错误，请重新输入',
            icon: 'none'
          });
        }
      }
    });
  }
});
